<div class="homePage">

    <div style=" background:#FDEDE0;">
        <div class="wrapper">
            <DIV class="Current_nav" style="color:#4aaddf;line-height: 30px;">
                <A href="javascript:void();">首页</A><a> &gt;  1元购 &gt; </a> 正在进行中</DIV>
        </div>
    </div>

    <div style="background:url('<?php echo SHOP_RESOURCE_SITE_URL;?>/images/lyg_066.jpg') center; width:100%; height:88px;">
        <div class="wrapper">

            <DIV style="padding-left: 10px;padding-top:17px;padding-bottom: 8px;margin-right: 2px;margin-left: -2px;" class="show_Period" id="divPeriodList">
                <UL class="Period_list">
                    <LI>
                        <A href="<?php echo urlShop('crowdfunding','goods',array('id'=>$_GET['id']));?>"><B class="period_Ongoing period_ArrowCur">第<?php echo $output['item']['qishu'];?>期<I></I></B></A>
                    </LI>
                    <?php foreach($output['itemlist'] as $i){ ?>
                    <LI>
                       <b><a href="<?php echo urlShop('crowdfunding','dataserver',array('id'=>$i['id']));?>">第<?php echo $i['qishu'];?>期</a></b>
                    </LI>
                    <?php }?>
                </UL>
            </DIV>

        </div>
    </div>
    <div style="background:url('<?php echo SHOP_RESOURCE_SITE_URL;?>/images/lyg_077.jpg') center; width:100%; height:740px;">

        <LINK href="<?php echo SHOP_RESOURCE_SITE_URL;?>/css/Comm1.css" rel="stylesheet" type="text/css">
        <LINK href="<?php echo SHOP_RESOURCE_SITE_URL;?>/css/register.css" rel="stylesheet" type="text/css">
        <LINK href="<?php echo SHOP_RESOURCE_SITE_URL;?>/css/Lottery.css" rel="stylesheet" type="text/css">
        <LINK href="<?php echo SHOP_RESOURCE_SITE_URL;?>/css/LotteryDetail.css" rel="stylesheet" type="text/css">
        <LINK href="<?php echo SHOP_RESOURCE_SITE_URL;?>/css/GoodsDetail.css" rel="stylesheet" type="text/css">
        <link rel="stylesheet" type="text/css" href="<?php echo SHOP_RESOURCE_SITE_URL;?>/css/cloud-zoom.css">
        <script type="text/javascript" src="<?php echo SHOP_RESOURCE_SITE_URL;?>/js/cloud-zoom.min.js"></script>
        <script>

            $(function() {
                var fouli = $(".DetailsT_TitP ul li");
                var divCalResult = $("div[name='div_tab']");
                fouli.click(function() {
                    var index = fouli.index(this);
                    fouli.removeClass("DetailsTCur").eq(index).addClass("DetailsTCur");
                    var iframe = divCalResult.hide().eq(index).find("iframe");
                    if (typeof(iframe.attr("g_src")) != "undefined") {
                        iframe.attr("src", iframe.attr("g_src"));
                        iframe.removeAttr("g_src");
                    }
                    divCalResult.hide().eq(index).show();
                });
                <!--补丁3.1.6_b.0.3-->
                $(".Announced_But").click(function() {
                    var next_li = $(".DetailsT_TitP ul>li");
                    var index = $(this).index()
                    next_li.eq(index).click();
                });
            });

            $(function() {
                $("#ulRecordTab li").click(function() {
                    var add = $("#ulRecordTab li").index(this);
                    $("#ulRecordTab li").removeClass("Record_titCur").eq(add).addClass("Record_titCur");
                    $(".Pro_Record .hide").hide().eq(add).show();
                });
                var DetailsT_TitP = $(".DetailsT_TitP ul li");
                var divContent = $("#divContent div");
                DetailsT_TitP.click(function() {
                    var index = $(this).index();
                    DetailsT_TitP.removeClass("DetailsTCur").eq(index).addClass("DetailsTCur");
                    var iframe = divContent.hide().eq(index).find("iframe");
                    if (typeof(iframe.attr("g_src")) != "undefined") {
                        iframe.attr("src", iframe.attr("g_src"));
                        iframe.removeAttr("g_src");
                    }
                    divContent.hide().eq(index).show();
                });
                <!--补丁3.1.6_b.0.2-->
                $("#btnUserBuyMore").click(function() {
                    $("#liUserBuyAll").click();
                    $("html,body").animate({
                        scrollTop: 941
                    }, 1500);
                });
                $(window).scroll(function() {
                    if ($(window).scrollTop() >= 941) {
                        $("#divProductNav").addClass("nav-fixed");
                    } else if ($(window).scrollTop() < 941) {
                        $("#divProductNav").removeClass("nav-fixed");
                    }
                });
            })
            var shopinfo = {
                'shopid': 214,
                'money': 1.00,
                'shenyu': 699
            };


            $(function() {
                function baifenshua(aa, n) {
                    n = n || 2;
                    return (Math.round(aa * Math.pow(10, n + 2)) / Math.pow(10, n)).toFixed(n) + '%';
                }
                var shopnum = $("#num_dig");
                var ten_per = Math.floor(parseInt(699)) || 1;
                var max_num = (ten_per > parseInt(shopinfo['shenyu'])) ? parseInt(shopinfo['shenyu']) : ten_per;
                shopnum.keyup(function() {
                    if (shopnum.val() >= max_num) {
                        shopnum.val(max_num);
                    }
                    var numshop = shopnum.val();
                    if (numshop == 699) {
                        var baifenbi = '100%';
                    } else {
                        var showbaifen = numshop / 699;
                        var baifenbi = baifenshua(showbaifen, 2);
                    }
                    $("#chance").html("<span style='color:red'>获得机率" + baifenbi + "</span>");
                });
                $("#shopadd").click(function() {
                    var shopnum = $("#num_dig");
                    var resshopnump = '';
                    var ten_per = Math.floor(parseInt(699)) || 1;
                    var max_num = (ten_per > parseInt(shopinfo['shenyu'])) ? parseInt(shopinfo['shenyu']) : ten_per;
                    var num = parseInt(shopnum.val());
                    if (num >= max_num) {
                        shopnum.val(max_num);
                        resshopnump = max_num;
                    } else {
                        resshopnump = parseInt(shopnum.val()) + 1;
                        shopnum.val(resshopnump);
                    }
                    if (resshopnump == 699) {
                        var baifenbi = '100%';
                    } else {
                        var showbaifen = resshopnump / 699;
                        var baifenbi = baifenshua(showbaifen, 2);
                    }
                    $("#chance").html("<span style='color:red'>获得机率" + baifenbi + "</span>");
                });
                $("#shopsub").click(function() {
                    var shopnum = $("#num_dig");
                    var num = parseInt(shopnum.val());
                    if (num < 2) {
                        shopnum.val(1);
                    } else {
                        shopnum.val(parseInt(shopnum.val()) - 1);
                    }
                    var shopnums = parseInt(shopnum.val());
                    if (shopnums == 699) {
                        var baifenbi = '100%';
                    } else {
                        var showbaifen = shopnums / 699;
                        var baifenbi = baifenshua(showbaifen, 2);
                    }
                    $("#chance").html("<span style='color:red'>获得机率" + baifenbi + "</span>");
                });
            });

        </script>


        <style type="text/css">
            .zoom-section {
                clear: both;
                margin-top: 20px;
            }

            .zoom-small-image {
                border: 2px solid #dedede;
                float: left;
                margin-bottom: 20px;
                width: 400px;
                height: 400px;
            }

            .zoom-small-image img {
                width: 400px;
                height: 400px;
            }

            .zoom-desc {
                float: left;
                width: 404px;
                height: 52px;
                margin-bottom: 20px;
                overflow: hidden;
            }

            .zoom-desc p {
                width: 10000px;
                height: 52px;
                float: left;
                display: block;
                position: absolute;
                top: 0;
                z-index: 3;
                overflow: hidden;
            }

            .zoom-desc label {
                width: 50px;
                height: 52px;
                margin: 0 5px 0 0;
                _margin-right: 4px;
                display: block;
                float: left;
                overflow: hidden;
            }

            .zoom-tiny-image {
                border: 1px solid #CCC;
                margin: 0px;
                width: 48px;
                height: 50px;
            }

            .zoom-tiny-image:hover {
                border: 1px solid #C00;
            }
        </style>

        <div class="wrapper show_content">

            <!-- 商品信息 -->
            <div class="Pro_Details">
                <h1><span>(第<?php echo $output['item']['qishu'];?>期)</span><span><?php echo $output['item']['title'];?></span><span style="<?php echo $output['item']['title_style'];?>"><?php echo $output['item']['title2'];?></span></h1>
                <div class="Pro_Detleft">
                    <div class="zoom-small-image">
				<span href="<?php echo UPLOAD_SITE_URL.DS.ATTACH_GOODS.DS. $output['item']['thumb'];?>" class = 'cloud-zoom' id='zoom1' rel="adjustX:10, adjustY:-2">
                <img width="80px" height="80px" src="<?php echo UPLOAD_SITE_URL.DS.ATTACH_GOODS.DS. $output['item']['thumb'];?>" /></span>
                    </div>

                    <div class="zoom-desc">
                        <div class="jcarousel-prev jcarousel-prev-disabled"></div>
                        <div class="jcarousel-clip" style="height:55px;width:384px;">
                            <p>
                                <?php
                                if(!empty($output['item']['picarr'])){
                                    $picarr = unserialize($output['item']['picarr']);?>
                                    <?php foreach($picarr as $imgtu){?>
                                        <label href="<?php echo UPLOAD_SITE_URL.DS.ATTACH_GOODS.DS.$imgtu;?>" class='cloud-zoom-gallery'  rel="useZoom: 'zoom1', smallImage: '<?php echo UPLOAD_SITE_URL.DS.ATTACH_GOODS.DS.$imgtu;?>'">
                                            <img class="zoom-tiny-image" src="<?php echo UPLOAD_SITE_URL.DS.ATTACH_GOODS.DS.$imgtu;?>" /></label>
                                    <?php }}?>
                            </p>
                        </div>
                        <div class="jcarousel-next jcarousel-next-disabled"></div>
                    </div>
                    <script>
                        var si=$(".jcarousel-clip label").size();
                        var label=si*55;
                        $(".jcarousel-clip p").css({width:label,left:"0"});
                        if(label>395){
                            $(".jcarousel-prev,.jcarousel-next").show();
                        }else{
                            $(".jcarousel-prev,.jcarousel-next").hide();
                        }
                        $(".jcarousel-prev").click(function(){
                            var le=$(".jcarousel-clip p").css("left");
                            var le2=le.replace(/px/,"");
                            if(le!='0px'){
                                $(".jcarousel-clip p").css({left:le2*1+55});
                            }
                        })
                        $(".jcarousel-next").click(function(){
                            var le=$(".jcarousel-clip p").css("left");
                            var le2=le.replace(/px/,"");
                            var max_next=-(si-7)*55+"px";
                            if(le!=max_next){
                                $(".jcarousel-clip p").css({left:le2*1-55});
                            }
                        })
                    </script>
                    <?php $item = $output['item'];  $sid_code = $output['sid_item']; ?>
                    <?php if(!empty($output['sid_item'])){?>
                        <?php if($output['sid_item']['q_showtime']=='N' && !empty($sid_code['q_uid'])){
                            $q_user = unserialize($output['sid_item']['q_user']);?>
                            <div class="Pro_GetPrize">
                                <h2>上期获得者</h2>
                                <div class="GetPrize">
                                    <dl>
                                        <dt><a rel="nofollow" href="<?php echo urlShop('crowdfunding', 'uname',array('id'=>$sid_code['q_uid']));?>" target="_blank">
                                                <img width="80" height="80" alt="" src="<?php echo get_user_avatar($q_user);?>">
                                            </a></dt>
                                        <dd class="gray02">
                                            <p>恭喜 <a href="<?php echo urlShop('crowdfunding', 'uname',array('id'=>$sid_code['q_uid']));?>" target="_blank" class="blue"><?php echo $q_user['username'];?></a> 获得了本商品</p>
                                            <?php if(empty($output['sid_go_record']['ip'])){?>

                                                <?php echo get_ip($sid_code['ip'],'ipcity');?>
                                            <?php }?>
                                            <p>揭晓时间：<?php echo microt($sid_code['q_end_time']);?></p>
                                            <p>参与时间：<?php echo date('Y-m-d H:i:s',$sid_code['time']);?></p>
                                            <p>幸运参与码：<em class="orange Fb"><?php echo $sid_code['q_user_code'];?></em></p>
                                        </dd>
                                    </dl>
                                </div>
                            </div>
                        <?php }?>
                    <?php }?>
                </div>
                <div class="Pro_Detright">
                    <p class="Det_money">价值：<span class="rmbgray"><?php echo $item['money'];?></span></p>
                    <!--显示揭晓动画 start-->
                    <!--显示揭晓动画 start-->
                    <?php $q_showtime = $item['q_showtime'];?>
                    <?php if ($q_showtime=='Y'){?>
                        <?php include(dirname(__FILE__)."/item_animation.php");?>
                    <?php }else{?>
                        <?php include(dirname(__FILE__)."/item_contents.php");?>
                    <?php }?>
                    <!--显示揭晓动画 end-->
                    <div class="Security">
                            <ul>
                                <li><a href="#" target="_blank"><i></i>100%公平公正</a></li>
                                <li><a href="#" target="_blank"><s></s>100%正品保证</a></li>
                                <li><a href="#" target="_blank"><b></b>全国免费配送</a></li>
                            </ul>
                    </div>
                    <div class="Pro_Record">
                        <ul id="ulRecordTab" class="Record_tit">
                            <li class="NewestRec Record_titCur">最新参与记录</li>
                            <li class="MytRec">我的参与记录</li>
                            <li class="Explain orange">什么是参与？</li>
                        </ul>
                        <div class="Newest_Con hide" style="display: block;">
                            <ul>
                                <?php foreach($output['user_list'] as  $user){?>
                                    <li>
                                        <a href="<?php echo urlShop('crowdfunding', 'uname',array('id'=>$user['q_uid']));?>" target="_blank">
                                            <?php if (!empty($user['uphoto'])){?>
                                                <img src="<?php echo BASE_SITE_URL.DS.$user['uphoto'];?>" border="0" alt="" width="20" height="20">
                                            <?php }else{?>
                                                <img src="<?php echo UPLOAD_SITE_URL.DS.ATTACH_AVATAR.DS."member.jpg";?>" border="0" alt="" width="20" height="20">
                                            <?php }?>
                                        </a>
                                        <a href="<?php echo urlShop('crowdfunding', 'uname',array('id'=>$user['q_uid']));?>" target="_blank" class="blue"><?php echo $user['username'];?></a>
                                        <?php if(!empty($user['ip'])){?>
                                            (<?php echo get_ip($user['ip'],'ipcity');?>)
                                        <?php }?>
                                        <?php echo _put_time($user['time']);?> 参与了
                                        <em class="Fb gray01"><?php echo $user['gonumber'];?></em>人次</li>
                                <?php }?>
                            </ul>
                            <p style=""><a id="btnUserBuyMore" href="javascript:;" class="gray01">查看更多</a></p>
                        </div>

                        <!--我的云购记录-->
                        <div class="My_Record hide" style="display: none;">
                            <?php if(!empty($_SESSION['member_id'])){?>
                                <ul>
                                  <?php $datas = $output['datas'];?>
                                    <?php foreach($datas as $user){?>
                                    <li><?php echo _put_time($user['time']);?>  参与码  <?php echo $user['gonumber'];?>  </li>
                                    <?php }?>
                                </ul>
                            <?php }else{?>
                                <div class="My_RecordReg">
                                    <b class="gray01">看不到？是不是没登录或是没注册？ 登录后看看</b>
                                    <a href="<?php echo urlMember('login','index');?>" class="My_Signbut">登录</a><a href="<?php echo urlMember('login','register');?>" class="My_Regbut">注册</a>
                                </div>
                            <?php }?>


                        </div>
                        <!--/我的云购记录-->

                        <div class="Newest_Con hide" style="display: none;">
                            <p class="MsgIntro">金银拼是指只需1元就有机会买到想要的商品。即每件商品被平分成若干“等份”出售，每份1元，当一件商品所有“等份”售出后，根据参与规则产生一名幸运者，该幸运者即可获得此商品。</p>
                            <p class="MsgIntro1">参与以“快乐网购，惊喜无限”为宗旨，力求打造一个100%公平公正、100%正品保障、寄娱乐与购物一体化的新型购物网站。</p>
                        </div>
                    </div>
                </div>
            </div>



        </div>

    </div>

    <div style="background:url('<?php echo SHOP_RESOURCE_SITE_URL;?>/images/lyg_05.jpg') center; width:100%; height:148px; margin-left:-1px;"></div>
    <div style="background:url('<?php echo SHOP_RESOURCE_SITE_URL;?>/images/lyg_077.jpg') center; width:100%; min-height:720px;margin-top: -10px;">

        <DIV class="ProductTabNav" id="calculate">
            <DIV class="DetailsT_Tit" id="divMidNav">
                <DIV class="DetailsT_TitP">
                        <ul>
                            <li class="Product_DetT DetailsTCur"><span class="DetailsTCur">商品详情</span></li>
                            <li id="liUserBuyAll" class="All_RecordT"><span class="">所有参与记录</span></li>
                            <li class="Single_ConT"><span class="">晒单</span></li
                        </ul>
                </DIV>
            </DIV>
        </DIV>
        <!--补丁3.1.6_b.0.1-->

        <DIV class="Product_Content" id="divCalResult">

            <DIV class="ygRecord" name="div_tab">
                <div class="Product_Con"><?php echo $item['content'];?></div>
                <DIV class="yghelp">1、取该商品最后购买时间前网站所有商品的最后100条购买时间记录
                    <BR>2、每个时间记录按时、分、秒、毫秒依次排列取数值
                    <BR>3、将这100个数值之和除以该商品总参与人次后取余数，余数加上10000001 即为“幸运参与码”。 </DIV>

                <DIV class="RecordOnehundred">
                    <H4> 100条计算结果 </H4>
                    <DIV class="ResultBox">
                        <H2>计算结果</H2>
                        <P class="num4">求和：
                            <SPAN class="Fb">4483817183</SPAN>(上面100条参与记录时间取值相加之和)
                            <BR>取余：
                            <SPAN class="Fb">4483817183</SPAN>(100条时间记录之和)
					<SPAN class="Fb"> %
699</SPAN>(本商品总需参与人次)
                            <SPAN class="Fb"> =  599</SPAN>(余数)
                            <BR>结果：
                            <SPAN class="Fb">599</SPAN>(余数)
					<SPAN class="Fb"> + 10000001 =
<EM>10000600</EM></SPAN> </P>
                        <B>最终结果：10000600</B>  <span style="color: red;font-weight: bold;">(计算样例)</span></DIV>
                    <DIV style="width: 100%; height: 30px;"></DIV>
                </DIV>
            </DIV>
            <!-- 购买记录50条 -->
            <DIV class="AllRecordCon" id="bitem" name="div_tab" class="AllRecordCon">
                <iframe id="iframea_bitem" g_src="<?php echo urlShop('crowdfunding', 'go_record_ifram',array('id'=>$item['id'],'limit'=>50));?>" style="width:978px; border:none;height:100%" frameborder="0" scrolling="no"></iframe>
                <!--/获取当前会商品的购买记录-->
            </DIV>
            <!-- /购买记录20条 -->
            <!--补丁3.1.6_b.0.1-->
            <!--补丁3.1.6_b.0.2-->
            <!-- 晒单 -->
        <div id="divPost" name="div_tab" class="Single_Content">
            <iframe id="iframea_divPost" g_src="<?php echo urlShop('crowdfunding', 'go_itmeifram',array('id'=>$item['id']));?>" style="width:978px; border:none;height:100%" frameborder="0" scrolling="no"></iframe>
        </div>
            <!-- 晒单 -->
            <!--补丁3.1.6_b.0.2-->
        </DIV>
    </div>

    <script type="text/javascript">
        <!--补丁3.1.6_b.0.2-->
        function set_iframe_height(fid,did,height){
            $("#"+fid).css("height",height);
        }

        $(function(){
            $("#ulRecordTab li").click(function(){
                var add=$("#ulRecordTab li").index(this);
                $("#ulRecordTab li").removeClass("Record_titCur").eq(add).addClass("Record_titCur");
                $(".Pro_Record .hide").hide().eq(add).show();
            });

            var DetailsT_TitP = $(".DetailsT_TitP ul li");
            var divContent    = $("#divContent div");
            DetailsT_TitP.click(function(){
                var index = $(this).index();
                DetailsT_TitP.removeClass("DetailsTCur").eq(index).addClass("DetailsTCur");

                var iframe = divContent.hide().eq(index).find("iframe");
                if (typeof(iframe.attr("g_src")) != "undefined") {
                    iframe.attr("src",iframe.attr("g_src"));
                    iframe.removeAttr("g_src");
                }
                divContent.hide().eq(index).show();
            });
            <!--补丁3.1.6_b.0.2-->

            $("#btnUserBuyMore").click(function(){
                $("#liUserBuyAll").click();
                $("html,body").animate({scrollTop:941},1500);
            });
            $(window).scroll(function(){
                if($(window).scrollTop()>=941){
                    $("#divProductNav").addClass("nav-fixed");
                }else if($(window).scrollTop()<941){
                    $("#divProductNav").removeClass("nav-fixed");
                }
            });
        })
        <?php $syrs = $item['shenyurenshu'];?>
        var shopinfo={'shopid':<?php echo $item['id'];?>,'money':<?php echo $item['yunjiage'];?>,'shenyu':<?php echo $syrs;?>};


        $(function(){
            function baifenshua(aa,n){
                n = n || 2;
                return ( Math.round( aa * Math.pow( 10, n + 2 ) ) / Math.pow( 10, n ) ).toFixed( n ) + '%';
            }
            var shopnum = $("#num_dig");
            var ten_per = Math.floor(parseInt(<?php echo $item['zongrenshu'];?>)) || 1;
            var max_num = (ten_per > parseInt(shopinfo['shenyu'])) ? parseInt(shopinfo['shenyu']) : ten_per;
            shopnum.keyup(function(){
                if(shopnum.val()>=max_num){
                    shopnum.val(max_num);
                }
                var numshop=shopnum.val();
                if(numshop==<?php echo $item['zongrenshu'];?>){
                    var baifenbi='100%';
                }else{
                    var showbaifen=numshop/<?php echo $item['zongrenshu'];?>;
                    var baifenbi=baifenshua(showbaifen,2);
                }
                $("#chance").html("<span style='color:red'>获得机率"+baifenbi+"</span>");
            });

            $("#shopadd").click(function(){
                var shopnum = $("#num_dig");
                var resshopnump='';
                var ten_per = Math.floor(parseInt(<?php echo $item['zongrenshu'];?>)) || 1;
                var max_num = (ten_per > parseInt(shopinfo['shenyu'])) ? parseInt(shopinfo['shenyu']) : ten_per;
                var num = parseInt(shopnum.val());
                if(num >= max_num){
                    shopnum.val(max_num);
                    resshopnump = max_num;
                }else{
                    resshopnump=parseInt(shopnum.val())+1;
                    shopnum.val(resshopnump);
                }
                if(resshopnump==<?php echo $item['zongrenshu'];?>){
                    var baifenbi='100%';
                }else{
                    var showbaifen=resshopnump/<?php echo $item['zongrenshu'];?>;
                    var baifenbi=baifenshua(showbaifen,2);
                }
                $("#chance").html("<span style='color:red'>获得机率"+baifenbi+"</span>");
            });


            $("#shopsub").click(function(){
                var shopnum = $("#num_dig");
                var num = parseInt(shopnum.val());
                if(num<2){
                    shopnum.val(1);
                }else{
                    shopnum.val(parseInt(shopnum.val())-1);
                }
                var shopnums=parseInt(shopnum.val());
                if(shopnums==<?php echo $item['zongrenshu'];?>){
                    var baifenbi='100%';
                }else{
                    var showbaifen=shopnums/<?php echo $item['zongrenshu'];?>;
                    var baifenbi=baifenshua(showbaifen,2);
                }
                $("#chance").html("<span style='color:red'>获得机率"+baifenbi+"</span>");
            });
        });

        $(function(){
            $(".Det_Cart").click(function(){
                //添加到购物车动画
                var src=$("#zoom1 img").attr('src');
                var $shadow = $('<img id="cart_dh" style="display: none; border:1px solid #aaa; z-index: 99999;" width="400" height="400" src="'+src+'" />').prependTo("body");
                var $img = $(".mousetrap").first("img");
                $shadow.css({
                    'width' : $img.css('width'),
                    'height': $img.css('height'),
                    'position' : 'absolute',
                    'top' : $img.offset().top,
                    'left' : $img.offset().left,
                    'opacity' :1
                }).show();
                var $cart =$("#btnMyCart");
                var numdig=$(".num_dig").val();
                $shadow.animate({
                    width: 1,
                    height: 1,
                    top: $cart.offset().top,
                    left: $cart.offset().left,
                    opacity: 0
                },500,function(){
                    Cartcookie(false);
                });
            });
            $(".Det_Shopbut").click(function(){
                Cartcookie(true);
            });
        });



        function Cartcookie(cook){
            var shopid=shopinfo['shopid'];
            var number=parseInt($("#num_dig").val());
            if(number<=1){number=1;}
            var Cartlist = $.cookie('Cartlist');
            if(!Cartlist){
                var info = {};
            }else{
                var info = $.evalJSON(Cartlist);
                if((typeof info) !== 'object'){
                    var info = {};
                }
            }
            if(!info[shopid]){
                var CartTotal=$("#sCartTotal").text();
                $("#sCartTotal").text(parseInt(CartTotal)+1);
                $("#btnMyCart em").text(parseInt(CartTotal)+1);
            }
            info[shopid]={};
            info[shopid]['num']=number;
            info[shopid]['shenyu']=shopinfo['shenyu'];
            info[shopid]['money']=shopinfo['money'];
            info['MoenyCount']='0.00';
            $.cookie('Cartlist',$.toJSON(info),{expires:7,path:'/'});
            if(cook){
                window.location.href="<?php echo urlShop('crowdfunding', 'cartlist');?>&t="+new Date().getTime();//+new Date().getTime()
            }
        }
    </script>
    <script type="text/javascript" src="<?php echo SHOP_RESOURCE_SITE_URL;?>/js/jquery-json.js"></script>
    <div style="background:url('<?php echo SHOP_RESOURCE_SITE_URL;?>/images/lyg_088.jpg') center; width:100%; height:60px;"></div>
    <div align="center" style="background-color: #fdede1;padding-bottom:15px; ">本活动最终解释权归找金银网所有</div>